package e

const (
	SUCCESS        = 200
	ERROR          = 500
	INVALID_PARAMS = 400

	ERROR_EXIST_VIDEO     = 10001
	ERROR_EXIST_USER_NAME = 10002

	ERROR_NOT_EXIST_VIDEO    = 20002
	ERROR_NOT_EXIST_USERID   = 20003
	ERROR_NOT_EXIST_USERNAME = 20004

	ERROR_AUTH_INVALID_SESSION   = 30001
	ERROR_AUTH_PWD_UNMATCH       = 30002
	ERROR_AUTH_USERNAME_MISMATCH = 30003

	ERROR_ADD_COMMENT_FAIL   = 40001
	ERROR_ADD_USER_FAIL      = 40002
	ERROR_ADD_VIDEOINFO_FAIL = 40003
	ERROR_ADD_DELRECS_FAIL   = 40004

	ERROR_GET_COMMENTS_FAIL   = 50001
	ERROR_GET_VIDEOINFOS_FAIL = 50002

	ERROR_UPLOAD_VIDEO_FILE_TOO_BIG       = 60001
	ERROR_UPLOAD_VIDEO_FORMAT_UNSUPPORTED = 60002
	ERROR_UPLOAD_VIDEO_SAVE_FAIL          = 60003

	ERROR_REQUEST_NOT_RECOGNIZED             = 70001
	ERROR_REQUEST_BODY_PARSE_FAILED          = 70002
	ERROR_REQUEST_MISMATCH_USERNAME_URL_BODY = 70003
	ERROR_REQUEST_UNMARSHAL_BODY_FAILED      = 70004
	ERROR_REQUEST_BODY_UNMARSHAL_JSON_FAIL   = 70005

	ERROR_DELETE_USER_FAIL      = 80001
	ERROR_DELETE_VIDEOINFO_FAIL = 80002

	ERROR_MODIFY_USER_FAIL = 90001

	ERROR_FIND_USER_FAIL = 100001

	ERROR_COUNT_COMMENT_FAIL   = 110001
	ERROR_COUNT_VIDEOINFO_FAIL = 110002

	ERROR_DB_ERROR_INFO = 120001

	ERROR_OPEN_FILE_FAIL = 130001
)
